package com.jhgsys.internal.incentive.service;

import com.jhgsys.internal.common.exception.FebsException;
import com.jhgsys.internal.incentive.dto.IncentiveQuotaApplyDto;
import com.jhgsys.internal.incentive.entity.IncentiveQuotaApply;
import com.jhgsys.internal.common.entity.QueryRequest;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 *  Service接口
 *
 * @author zhangwei
 * @date 2024-09-03 13:16:21
 */
public interface IIncentiveQuotaApplyService extends IService<IncentiveQuotaApply> {
    /**
     * 查询（分页）
     * @author zhangwei
     * @date 2024-09-03 13:16:21
     * @param request QueryRequest
     * @param incentiveQuotaApply incentiveQuotaApply
     * @return IPage<IncentiveQuotaApply>
     */
    IPage<IncentiveQuotaApply> findIncentiveQuotaApplyPage(QueryRequest request, IncentiveQuotaApply incentiveQuotaApply);

    /**
     * 查询（所有）
     * @author zhangwei
     * @date 2024-09-03 13:16:21
     * @param incentiveQuotaApply incentiveQuotaApply
     * @return List<IncentiveQuotaApply>
     */
    List<IncentiveQuotaApply> findIncentiveQuotaApplyList(IncentiveQuotaApply incentiveQuotaApply);

    /**
    * 根据ID查询
    * @author zhangwei
    * @date 2024-09-03 13:16:21
    * @param id
    * @return IncentiveQuotaApply
    */
    IncentiveQuotaApplyDto findIncentiveQuotaApplyById(String id);

    /**
     * 新增
     * @author zhangwei
     * @date 2024-09-03 13:16:21
     * @param incentiveQuotaApply incentiveQuotaApply
     */
    void createIncentiveQuotaApply(IncentiveQuotaApply incentiveQuotaApply) throws FebsException;

    /**
     * 修改
     * @author zhangwei
     * @date 2024-09-03 13:16:21
     * @param incentiveQuotaApply incentiveQuotaApply
     */
    void updateIncentiveQuotaApply(IncentiveQuotaApply incentiveQuotaApply);

    /**
     * 审核
     * @author zhangwei
     * @date 2024-09-03 13:16:21
     * @param incentiveQuotaApplyDto incentiveQuotaApplyDto
     */
    void auditIncentiveQuotaApply(IncentiveQuotaApplyDto incentiveQuotaApplyDto);

    /**
     * 逻辑删除
     * @author zhangwei
     * @date 2024-09-03 13:16:21
     * @param incentiveQuotaApply incentiveQuotaApply
     * @param incentiveQuotaApplyIds incentiveQuotaApplyIds
     */
    void deleteIncentiveQuotaApply(IncentiveQuotaApply incentiveQuotaApply,String incentiveQuotaApplyIds);

    /**
    * 物理删除
    * @author zhangwei
    * @date 2024-09-03 13:16:21
    * @param incentiveQuotaApplyIds incentiveQuotaApplyIds
    */
    void physicallyDeleteIncentiveQuotaApply(String incentiveQuotaApplyIds);

    /**
     * 生成编号 年+公司编码+序列号（5位）
     * @author zhangwei
     * @date 2024-09-03 16:45:01
     * @param tenantId 公司ID
     */
    String createQuotaApplyNo(String tenantId) throws FebsException;
}
